import Vue from 'vue'
import Vuex from 'vuex'
import getters from './getters'
import user from './modules/user'

Vue.use(Vuex)

const store = new Vuex.Store({
    state:{
        showHeader:true,
        showFooter:true,
        selectQuestionProgramId:null,
    },
    mutations:{
        setShowHeader(state,payload){
            state.showHeader=payload;
        },setShowFooter(state,payload){
            state.showFooter=payload;
        }
    },
    modules: {
        user
    },
    getters
})

export default store